public class HomeWork12_02{
    public static void main(String[] args){
        int[] arr = new int[]{4, 5, 1, 8, 0, 7, 2, 3, 6, 9};
        ArrSort.IntArrSort(arr);
        
        for(int item : arr){
            System.out.println(item);
        }
    }
}

class ArrSort{
    public static void IntArrSort(int[] arr){
        for(int i = arr.length; i > 0; i--){
            for(int j = 0; j < i - 1; j++){
                if(arr[j] < arr[j + 1]){
                    int temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
        }
    }
}